#ifndef COLORBUTTON_H
#define COLORBUTTON_H

#include <QToolButton>

//! @class ColorButton
class ColorButton : public QToolButton
{
    Q_OBJECT

public:
    ColorButton(QWidget* parent = 0);

    QColor color();
    void setColor(QColor value);

    //! @reimp
    virtual void setText(const QString &text);

private:
    QColor _color;
};

#endif // COLORBUTTON_H
